package com.app.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("lm_map")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class MapModel {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String name;
    private String address;//位置
    private String longitude;//经度
    private String latitude;//纬度
    private String icon;
    private Integer type;
    private Integer status;
    private String keywords;
    private String mobile;
    @TableField(exist = false)
    private String typeText;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp updateTime;
}
